@extends('admin/index')
@section('name')
    <h1><span class="label label-default"> 广告编辑  </span></h1>
    <hr>

    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <form class="form-horizontal" action="{{url('/logo/update')}}" method="post"  enctype="multipart/form-data">
                    {{  csrf_field() }}
                    @foreach($result as $v)
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">链接</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="link" placeholder="链接" value="{{$v->link}}">
                        </div>
                        <input type="hidden" name="id" value="{{$v->id}}">
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">Logo</label>
                        <div class="col-sm-10">
                            <input type="file"  name="img" placeholder="Logo" value="{{$v->img}}">
                        </div>
                    </div>
                    @endforeach
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">SAVE</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

@endsection

